import React from 'react'

export interface IconProps{
    type:string,
    onClick?: any
}
function Icon(props: IconProps) {
  const { type, onClick } = props;
  return <i className={`iconfont ${type}`} onClick={onClick}></i>
}

export default Icon